package com.nifostasky.utilDao;

import android.content.Context;

import androidx.test.InstrumentationRegistry;

import org.junit.Test;

public class settingInfoTest {

    @Test
    public void updatevolumePage() {
        Context context = InstrumentationRegistry.getTargetContext();
        SettingInfo setDao = new SettingInfo(context);
        System.out.println("音量键控制:" + setDao.updatevolumePage());
    }

    @Test
    public void updateShowKey() {
        Context context = InstrumentationRegistry.getTargetContext();
        SettingInfo setDao = new SettingInfo(context);
        System.out.println("显示按键:" + setDao.updateShowKey());
    }

    @Test
    public void queryShowKeyAndVolumePage() {
        Context context = InstrumentationRegistry.getTargetContext();
        SettingInfo setDao = new SettingInfo(context);
        int dao[] = setDao.queryShowKeyAndVolumePage();
        System.out.println("查询数据"+dao[0]+dao[1]);
    }

    @Test
    public void judageId() {
        Context context = InstrumentationRegistry.getTargetContext();
        SettingInfo setDao = new SettingInfo(context);
        System.out.println("检查是否有数据"+setDao.judageId());
    }

    @Test
    public void judgeAdd() {
        Context context = InstrumentationRegistry.getTargetContext();
        SettingInfo setDao = new SettingInfo(context);
        setDao.judgeAdd();
        System.out.println("增加数据");
    }
}